import { createRouter, createWebHashHistory } from 'vue-router'

export default createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path:"/",
            redirect:"/Login"
        },
        {
            name:'Login',
            path:"/Login",
            component:()=>import('../views/Login.vue')
        },
        {
            name:"index",
            path:"/index",
            component:()=>import("../views/HomePage/index.vue")
        }
    ]
});

// export default createRouter({
//     history: createWebHashHistory(),
//     routes: [
//         {
//             path: '/',
//             redirect: '/Login'
//         },
//         {
//             path:'/Login',
//             component:()=>import('../views/Login.vue')
//         },
//         {
//             path:"/HomePage",
//             component:()=>import('../views/HomePage/index.vue'),
//             children:[
//                 {
//                     path:'list',
//                     component:()=>import('../views/HomePage/Banner/list.vue')
//                 },
//                 {
//                     path:'Add',
//                     component:()=>import('../views/HomePage/Banner/Add.vue')
//                 },
//                 {
//                     path:'GoodsList',
//                     component:()=>import('../views/HomePage/goods/GoodsList.vue')
//                 },
//                 {
//                     path:'QueryList',
//                     component:()=>import('../views/HomePage/goods/QueryList.vue')
//                 },
//                 {
//                     path:'operator',
//                     component:()=>import('../views/HomePage/Admin/operator.vue')
//                 },
//                 {
//                     path:'Addoperator',
//                     component:()=>import('../views/HomePage/Admin/Addoperator.vue')
//                 }
//             ]
//         }
//     ]
// }
// )